<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .register-container {
            background-color: #fff;
            padding: 40px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 400px; /* 增加宽度 */
        }
        .register-container h2 {
            margin-bottom: 30px;
            text-align: center;
        }
        .form-group {
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
        }
        .form-group label {
            margin-bottom: 5px;
            font-weight: bold; /* 加粗标签 */
        }
        .form-group input, .form-group select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .form-group .radio-group, .form-group .checkbox-group {
            display: flex;
            align-items: center;
        }
        .form-group .radio-group label, .form-group .checkbox-group label {
            margin-left: 10px;
            font-weight: normal; /* 取消加粗 */
        }
        .register-button {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .register-button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>

<div class="register-container">
    <h2>用户注册</h2>
    <form>
        <div class="form-group">
            <label for="username">用户名：</label>
            <input type="text" id="username" name="username">
        </div>
        <div class="form-group">
            <label for="password">密码：</label>
            <input type="password" id="password" name="password">
        </div>
        <div class="form-group">
            <label>性别：</label>
            <div class="radio-group">
                <input type="radio" id="male" name="gender" value="male">
                <label for="male">男</label>
                <input type="radio" id="female" name="gender" value="female">
                <label for="female">女</label>
            </div>
        </div>
        <div class="form-group">
            <div class="checkbox-group">
                <input type="checkbox" id="hobby-checkbox" name="hobby-checkbox">
                <label for="hobby-checkbox">是否填写兴趣爱好</label>
            </div>
        </div>
        <div class="form-group">
            <label for="hobby">兴趣爱好：</label>
            <select id="hobby" name="hobby">
                <option value="reading">阅读</option>
                <option value="sports">运动</option>
                <option value="music">音乐</option>
                <option value="travel">旅行</option>
            </select>
        </div>
        <button type="submit" class="register-button">注册</button>
    </form>
</div>

</body>
</html>
